package com.ygqh.baby.service;

import java.util.List;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgProductSecondDetail;

public interface YgProductSecondDetailService {

	List<YgProductSecondDetail> find();

	int findCount();

	YgProductSecondDetail findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgProductSecondDetail ygProductSecondDetail);

	int update(YgProductSecondDetail ygProductSecondDetail);

	int saveOrUpdate(YgProductSecondDetail ygProductSecondDetail);

	ResultSet<YgProductSecondDetail> search(QueryInfo queryInfo, String q);

	int addBatch(List<YgProductSecondDetail> detailList);

	int updateBatch(List<YgProductSecondDetail> detailList);

	List<YgProductSecondDetail> findByProductSecondId(Long productSecondId);

	List<YgProductSecondDetail> findByProductId(Long productId);

}
